import request from '@/utils/request'

// 查询车辆申报记录列表
export function listVehicleDeclRecord(query) {
  return request({
    url: '/billsdecl/vehicleDeclRecord/list',
    method: 'get',
    params: query
  })
}

// 查询车辆申报记录详细
export function getVehicleDeclRecord(id) {
  return request({
    url: '/billsdecl/vehicleDeclRecord/getInfo/' + id,
    method: 'get'
  })
}

// 新增车辆申报记录
export function addVehicleDeclRecord(data) {
  return request({
    url: '/billsdecl/vehicleDeclRecord/add',
    method: 'post',
    data: data
  })
}

// 修改车辆申报记录
export function updateVehicleDeclRecord(data) {
  return request({
    url: '/billsdecl/vehicleDeclRecord/edit',
    method: 'post',
    data: data
  })
}

// 删除车辆申报记录
export function delVehicleDeclRecord(id) {
  return request({
    url: '/billsdecl/vehicleDeclRecord/remove/' + id,
    method: 'get'
  })
}

// 导出车辆申报记录
export function exportVehicleDeclRecord(query) {
  return request({
    url: '/billsdecl/vehicleDeclRecord/export',
    method: 'get',
    params: query
  })
}
